<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    //homebanner
    $router->resource('/homebanner', HomebannerController::class);
    //banner
    $router->resource('/banner', BannerController::class);
    //微信用户
    $router->resource('/wxuser', WxuserController::class);

    //评论
    $router->resource('/comment', CommentController::class);
    //指南
    $router->resource('/guide', GuideController::class);
    //福利规则
    $router->resource('/rule', RuleController::class);
    //手绘地图信息
    $router->resource('/mapinfo', MapinfoController::class);
    //美食
    $router->resource('/food', FoodController::class);
    $router->resource('/foodmenu', FoodmenuController::class);
    //景点
    $router->resource('/scene', SceneController::class);
    //旅游路线
    $router->resource('/travelline', TravellineController::class);
    //酒店
    $router->resource('/hotel', HotelController::class);
    $router->resource('/hotroom', HotroomController::class);
    //交通
    $router->resource('/traffic', TrafficController::class);
    $router->resource('/trafficline', TrafficlineController::class);
    //厕所
    $router->resource('/washroom', WashroomController::class);
    //配套设施
    $router->resource('/matchset', MatchsetController::class);


    //工作动态
    $router->resource('/job', JobController::class);
    //政务公开
    $router->resource('/government', GovernmentController::class);
    //旅游公告
    $router->resource('/notice', NoticeController::class);
    //旅游活动
    $router->resource('/activity', ActivityController::class);


    //游记
    $router->resource('/travelnote', TravelnoteController::class);
    $router->resource('/noteinfo', NoteinfoController::class);
    $router->resource('/region', RegionController::class);
    $router->resource('/spot', SpotController::class);

    //旅游画册
    $router->resource('/album', AlbumController::class);

    //投诉
    $router->resource('/complaint', ComplaintController::class);
    $router->resource('/complainttype', ComplainttypeController::class);
    //旅游歌曲
    $router->resource('/song', SongController::class);

    //实时监控
    $router->resource('/monitor', MonitorController::class);

    //主题直播
    $router->resource('/live', LiveController::class);

    //720常德
    $router->resource('/panorama', PanoramaController::class);

    //精品路线
    $router->resource('/selectedline', SelectedlineController::class);
    $router->resource('/selectedmenu', SelectedmenuController::class);

    //积分商城
    $router->resource('/scoreshop', ScoreshopController::class);

    //积分明细
    $router->resource('/scorelist', ScorelistController::class);

    //福利奖项
    $router->resource('/prize', PrizeController::class);

    //福利中奖明细
    $router->resource('/prizelist', PrizelistController::class);

    //问卷调查
    $router->resource('/questionnaire', QuestionnaireController::class);
    $router->resource('/question', QuestionController::class);
});
